package com.comet.service.fallback;

import com.comet.domain.Course;
import com.comet.service.CourseService;
import org.springframework.stereotype.Service;

/**
 * 兜底数据
 */
@Service
public class CourseServiceFallback implements CourseService {

    @Override
    public Course findById(int videoId) {
        Course course = new Course();
        course.setCourseName("这是Fallback里面的兜底数据");
        return course;
    }

    @Override
    public int save(Course course) {
        return -1;
    }

    @Override
    public int deductStockBySkuId(Integer skuId, Integer count) {
        return 0;
    }

}
